package cn.iocoder.yudao.module.pricehistory.controller.admin.pricehistory1.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 记录旅游线路价格的变动历史分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PriceHistoryPageReqVO extends PageParam {

    @Schema(description = "价格变动历史记录的唯一 ID（主键）", example = "11227")
    private Long historyId;

    @Schema(description = "关联的旅游线路 ID（外键）", example = "46")
    private Long routeId;

    @Schema(description = "线路变动前的价格", example = "1657")
    private BigDecimal oldPrice;

    @Schema(description = "线路变动后的价格", example = "20666")
    private BigDecimal newPrice;

    @Schema(description = "价格变动的时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] changeTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}